FROM frolvlad/alpine-oraclejdk8:slim
MAINTAINER yangrd <zhugeyangyang@163.com>
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /etc/apk/repositories
VOLUME /tmp
ENV TZ=Asia/Shanghai
ADD target/*.jar /app.jar

RUN echo $(date) > /image_built_at

EXPOSE 8080
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]